// 前台banner : banner接口 （接口文档对应的）
import request from '@/utils/request'

export function news_list(query) {//分页查询
    return request({
        url: '/api/news/list',
        method: 'post',
        data: query
    })
}
export function news_listAll(query) {//分页查询
    return request({
        url: '/api/news/listAll',
        method: 'post',
        data: query
    })
}
export function news_save(query) {//新增active
    return request({
        url: '/api/news/save',
        method: 'post',
        data: query
    })
}
export function news_edit(query) {//修改news
    return request({
        url: '/api/news/edit',
        method: 'post',
        data: query
    })
}
export function updateTopStatus(query) {//批量置顶或取消置顶
    return request({
        url: '/api/news/updateTopStatus',
        method: 'post',
        data: query
    })
}
export function news_delete(query) {//删除 
    return request({
        url: '/api/news/delete',
        method: 'post',
        data: query
    })
}
export function news_deleteAll(query) {//批量删除   
    return request({
        url: '/api/news/deleteAll',
        method: 'post',
        data: query
    })
}
export function news_findById(query) {   
    return request({
        url: '/api/news/findById',
        method: 'post',
        data: query
    })
}